package tech.aistar.corejava.day12.homework.home07;

/**
 * @Author: lya
 * @Description: 本类的作用描述:
 * @CreateDate: 2019/8/1
 * @Version: 1.0
 */
public class Customer {
    private String cno;
    private String cname;
    private String number;
    private Integer sex;
    private String account;
    private String date;
    private double amount;

    public Customer() {
    }

    public Customer(String cno, String cname, String number, Integer sex, String account, String date, double amount) {
        this.cno = cno;
        this.cname = cname;
        this.number = number;
        this.sex = sex;
        this.account = account;
        this.date = date;
        this.amount = amount;
    }

    public String getCno() {
        return cno;
    }

    public void setCno(String cno) {
        this.cno = cno;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Customer{");
        sb.append("cno='").append(cno).append('\'');
        sb.append(", cname='").append(cname).append('\'');
        sb.append(", number='").append(number).append('\'');
        sb.append(", sex=").append(sex);
        sb.append(", account='").append(account).append('\'');
        sb.append(", date='").append(date).append('\'');
        sb.append(", amount=").append(amount);
        sb.append('}');
        return sb.toString();
    }
}
